/*
 @author RY
 @brief Version
 */

#ifndef _VERSION_H_
#define _VERSION_H_

#define TBOX_VERSION_MAJOR 1
#define TBOX_VERSION_MINOR 1
#define TBOX_VERSION_PATCH 1

#define TBOX_VERSION_NUM ((TBOX_VERSION_MAJOR << 16) | \
                         (TBOX_VERSION_MINOR << 8)  | \
                         (TBOX_VERSION_PATCH))

#define __TBOX_VERSTR(x)	#x
#define _TBOX_VERSTR(x)	__TBOX_VERSTR(x)
#define TBOX_VERSION_STR _TBOX_VERSTR(TBOX_VERSION_MAJOR) "." \
                        _TBOX_VERSTR(TBOX_VERSION_MINOR) "." \
                        _TBOX_VERSTR(TBOX_VERSION_PATCH)

#define PRODUCT_MODLE       V1
#define HARDWARE_VERSION    01
#define RESERVE_STATE       00
#define SOFTWARE_VERSION    01
#define SOFTWARE_CHANGE     01
#define SOFTWARE_UPGRAD     00
#define BUILT_IN_TEST       00

#define SOFT_VERSION_STR    _TBOX_VERSTR(PRODUCT_MODLE) \
			    _TBOX_VERSTR(HARDWARE_VERSION) \
			    _TBOX_VERSTR(RESERVE_STATE) \
			    _TBOX_VERSTR(SOFTWARE_VERSION) \
			    _TBOX_VERSTR(SOFTWARE_CHANGE) \
			    _TBOX_VERSTR(SOFTWARE_UPGRAD) \
			    _TBOX_VERSTR(BUILT_IN_TEST) \

#define TBOX_STAGE_STR ""

#endif /* _VERSION_H_ */
